package com.kaifamiao.N0804;

import java.util.Arrays;

public class Node1 {

    public static void main(String[] args) {
        String str = "青蛙:孤寡~";
        char ch = str.charAt(0);
        System.out.println(ch);

        int code = str.codePointAt(0);
        System.out.println(code);
        code = str.codePointAt(1);
        System.out.println(code);

        int code1 = str.codePointBefore(2);
        System.out.println(code1);
        int[] codes = {38738,34521};
        String str1 = new String(codes,0,2);
        System.out.println(str1);

        int num = "aB".compareTo("ab");


    }

}
